package com.ruoyi.wms.domain.bo.partolStore;

import com.ruoyi.wms.domain.entity.partolStore.RepairRecords;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import io.github.linpeilie.annotations.AutoMapper;

import java.util.Date;

/**
 * 维修记录业务对象 repair_records
 *
 * @author xhr
 * @date 2024-12-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RepairRecords.class, reverseConvertGenerate = false)
public class RepairRecordsBo extends BaseEntity {

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long equipmentId;

    /**
     * 报修时间
     */
    @NotNull(message = "报修时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date repairTime;

    /**
     * 报修状态
     */
    @NotNull(message = "报修状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long repairStatus;

    /**
     * 报修人
     */
    @NotBlank(message = "报修人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String repairer;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String context;


}
